# coding=gbk
from cPickle import load as pload, dump as pdump

dict = {}

print 'open dict.txt'
text = open('dict.txt','r').readlines()

print 'make dict'
for d in text:
  a = d[:-1]
  dict[a] = 1
#  print a

print 'dump to dict.dic'
pdump(dict,open('dict.dic','w'))

raw_input('done.')